package com.wjh.graduation.config;

import com.wjh.graduation.domain.R;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * Created on 2022/1/27.
 *
 * @author Wu Jiahong
 */
@RestControllerAdvice
public class ExceptionAdvice {
	@ExceptionHandler(Exception.class)
	public R doException(Exception e) {
		e.printStackTrace();
		return new R(303, "系统错误，请检查您输入信息或重试");
	}

}
